<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=path %>/css/mine.css" type="text/css" rel="stylesheet">
	<link href="<%=path %>/css/custom.css" type="text/css" rel="stylesheet">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		table {
	border: 1px;
	width: 100%;
	margin: 10px auto;
	border-collapse: collapse;
}

#table tr th,td {
	border: 1px solid #666;
	font-size: 15px;
	text-align: center;
	line-height: 20px;
}

#table tr th {
	font-size: 15px;
}
#table tr:hover{background: #ccc; cursor: pointer}
	</style>

  </head>
  
  <body>
  <center>
  <div class="div_head">
		<span> <span style="float:left">当前位置是：用户管理  》角色设置权限</span> <span
			style="float:right;margin-right: 8px;font-weight: bold"> <a
				style="text-decoration: none" href="./admin.php?c=goods&a=showlist">【主页】</a>
		</span>
		</span>
	</div>
    <table width="450px" border="1" cellpadding="0" cellspacing="0" id="table">
    <tr >
    <th>名称</th>
    <th>操作</th>
    </tr>
    <s:iterator value="#request.role">
    <tr align="center" >
    <td>${name}</td>
    <td><a href="<%=path%>/User_privilegePage?role.id=${id}">权限设置</a> </td>
    </tr>
    </s:iterator>
    </table>
   </center>
  </body>
</html>
